package cn.toolck.my.spring.utils;

import java.io.File;

/**
 * @ClassName StringUtils
 * @Description TODO
 * @Author Toolck Rin
 * @Date 2021/2/9 12:23
 * @Version 1.0
 **/
public class StringUtils {
    public static String getPath(String classPath) {
        return classPath.replace(".", File.separator);
    }

    public static String getFirstLow(String string) {
        String end = string.substring(1);
        String start = string.substring(0, 1);
        return start.toLowerCase() + end;
    }

    public static boolean isNullOrEmpty(String string) {
        return string == null || "".equals(string.trim());
    }
}
